package com.csun.cmny.provider.model.dto.excrement;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class ExcrementRecordSaveDto {

    //老人id
    @NotNull(message = "{sanitation.oldmanId.null}")
    private Long oldManId;

    //老人名字
    @NotEmpty(message = "{sanitation.oldmanName.null}")
    private String oldManName;

    //房間號
    @NotEmpty(message = "{sanitation.roomNo.null}")
    private String roomNo;

    //床位号
    @NotEmpty(message = "{sanitation.bedNo.null}")
    private String bedNo;

    //护工名字
    @NotEmpty(message = "{sanitation.nursingName.null}")
    private String nursingName;

    //护工userId
    @NotNull(message = "{sanitation.nursingId.null}")
    private Long nursingUserId;

    //记录日期
    @NotNull(message = "{sanitation.recordDate.null}")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recordDate;

    //大便次数
    @NotNull(message = "{excrement.numbers.null}")
    private Integer numbers;

    //备注
    private String remark;

}
